<!--
 * @Description: 损益分析表格
 * @Version: 1.0
 * @Autor: chwg
 * @Date: 2024-01-16 19:11:31
 * @LastEditors: chwg
 * @LastEditTime: 2024-01-16 19:11:31
-->
<template>
  <jy-table
    highlight-hover-column
    :stripe="false"
    highlight-hover-row
    :data="breakEvenTableData"
    class="break-even-table"
  >
    <jy-column
      v-for="i in breakEvenHeader"
      :key="i.field"
      :field="i.field"
      :title="i.title"
      :align="i.align"
      :minWidth="i.minWidth"
    >
      <template #default="{ row, rowIndex }">
        <div>
          <span>{{ row[i.field] ? row[i.field] : "--" }}</span>
        </div>
      </template>
    </jy-column>
  </jy-table>
</template>
      
      <script>
import { breakEvenHeader } from "../tableSetting.js";
export default {
  components: {},
  data() {
    return {
      breakEvenHeader,
      breakEvenTableData: [
        {
          name: "期初",
          netAmount: 100028,
          interestAmount: 100028,
          commission: 100028,
          totalAmount: 100028,
        },
        {
          name: "期末",
          netAmount: 100028,
          interestAmount: 100028,
          commission: 100028,
          totalAmount: 100028,
        },
        {
          name: "期间还本付息",
          netAmount: 100028,
          interestAmount: 100028,
          commission: 100028,
          totalAmount: 100028,
        },
        {
          name: "税前总计",
          netAmount: 100028,
          interestAmount: 100028,
          commission: 100028,
          totalAmount: 100028,
        },
        {
          name: "减：增值税税额",
          netAmount: 100028,
          interestAmount: 100028,
          commission: 100028,
          totalAmount: 100028,
        },
        {
          name: "减：所得税税额",
          netAmount: 100028,
          interestAmount: 100028,
          commission: 100028,
          totalAmount: 100028,
        },
        {
          name: "税后总计",
          netAmount: 100028,
          interestAmount: 100028,
          commission: 100028,
          totalAmount: 100028,
        },
      ],
    };
  },
};
</script>
      
      <style lang="less" scoped>
.break-even-table {
  width: 100%;
}
</style>
      